package com.yinxin.wudasuanfa.huaweiod;

import java.util.Scanner;

/**
 * @author yinxin
 * @version 1.0
 * @Description: •输入一个字符串，请按长度为8拆分每个输入字符串并进行输出；
 * •长度不是8整数倍的字符串请在后面补数字0，空字符串不处理。
 * @date 2022/5/2118:34
 */
public class ExerciseEasy1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        StringBuilder fillBuilder = new StringBuilder();
        int len = str.length()%8==0?str.length()/8*8:(str.length() / 8 + 1) * 8;
        int fillLen = len - str.length();
        for (int i = 0; i < fillLen; i++) {
            fillBuilder.append("0");
        }
        str+=fillBuilder;
        for (int i = 8; i <= len; i += 8) {
            String prefix = str.substring(i - 8, i);
            System.out.println(prefix);
        }
    }
}
